package com.zhangxx.web.common.util;

import com.zhangxx.web.common.model.ResponseMessage;

public class ResultMessage {

    public static ResponseMessage doSuccess(Object data){
        return new ResponseMessage(data);
    }
    public static ResponseMessage doSuccess(){
        return new ResponseMessage();
    }
    public static ResponseMessage doFail(int code,String msg){
        return new ResponseMessage(code,msg,"");
    }
}
